import Http from "../Http";
import {stringify} from "qs";

// 医生 增删改查
export default {
    lists(data = {}) {
        return Http.get("/mms/doctor", data)
    },
    info(id) {
        return Http.get(`/mms/doctor/${id}`)
    },
    destroy(id) {
        return Http.delete(`/mms/doctor/${id}`)
    },
    create(data) {
        return Http.post("/mms/doctor", stringify(data))
    },
    update(data) {
        return Http.put("/mms/doctor", stringify(data))
    }
}
